﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace Celeriq.Common
{
	[ServiceContract()]
	public interface IDataModel
	{
		[OperationContract]
		string[] UpdateData(IEnumerable<DataItem> list, UserCredentials credentials);

		[OperationContract]
		string[] DeleteData(IEnumerable<DataItem> item, UserCredentials credentials);

		[OperationContract]
		DataQueryResults Query(DataQuery query);

		[OperationContract]
		string[] Clear(UserCredentials credentials);
	}
}
